@extends('admin.layout.layout')
@section('content')
    <div class="mws-panel grid_8">
        {{session('error')}}
        @if(count($errors)>0)
        <div class="mws-form-message warning">
            <ul>
                @foreach($errors->all() as $error)
                    <li>{{$error}}</li>
                @endforeach

            </ul>

        </div>
        @endif
        <div class="mws-panel-header">
            <span>添加用户</span>
        </div>
        <div class="mws-panel-body no-padding">
            <form action="{{url('admin/user/insert')}}" method="POST" enctype="multipart/form-data" class="mws-form">
                {{csrf_field()}}
                <div class="mws-form-inline">
                    <div class="mws-form-row">
                        <label class="mws-form-label">用户名</label>
                        <div class="mws-form-item">
                            <input type="text" class="small" name="adm_name" style="width:300px">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">密码</label>
                        <div class="mws-form-item">
                            <input type="password" class="medium" name="adm_pwd" style="width:300px">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">重复密码</label>
                        <div class="mws-form-item">
                            <input type="password" class="medium" name="repadm_pwd" style="width:300px">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">电话</label>
                        <div class="mws-form-item">
                            <input type="text" class="small" name="adm_tel" style="width:300px">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">邮箱</label>
                        <div class="mws-form-item">
                            <input type="text" class="small" name="adm_email" style="width:300px">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">头像</label>
                        <div class="mws-form-item">
                            <input type="file" class="large" name="adm_face">
                        </div>
                    </div>
                    {{--ajax头像上传--}}

                    {{--ajax头像上传--}}
                    </div>
                    <div class="mws-form-row">
                        <label class="mws-form-label">角色</label>
                        <div class="mws-form-item clearfix">
                            <ul class="mws-form-list inline">
                                <li><input type="radio" name="adm_role_id" value="1" selected > <label>普通管理员</label></li>
                                <li><input type="radio" name="adm_role_id" value="2"> <label>超级管理员</label></li>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="mws-button-row">
                    <input type="submit" class="btn btn-danger" value="添加">
                    <input type="reset" class="btn " value="重置">
                </div>
            </form>
        </div>
    </div>
    @endsection
